<template>
  <div class="text_index">
    <div v-for="v in text" :key="v">
     <p>{{ v }}</p>
    </div>

  </div>
</template>

<script>
export default {
  head() {
    return {
      title: "超级会员服务协议",
    };
  },
  data() {
    return {
      text:[],
    };
  },

  created() {
    this.getInfo()
  },
  methods: {
    async getInfo() {
      const res = await this.$axios.$get('/queryAppUserSuperAgreement',{
        params: {
          enterpriseId: this.enterpriseId
        }
      })
      this.text = res && res.data && res.data.split('\n')
    },
  },
};
</script>

<style lang="scss">
.text_index {
  padding: 0.2rem;
  padding-bottom: 0;
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: #f5f6f7;
  overflow: scroll;

  p {
    line-height: 1.5;
    text-indent: 2em;
    font-size: 14px;
  }
}
</style>
